x86/ptwr: Misc cleanup to ptwr_emulated_update()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Aug 2018 17:05:24 +0000 (18:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 15 Aug 2018 13:54:50 +0000 (14:54 +0100)
commit35851408e9738026ca418527e4dcb8aff1960a52
tree8f83b991a392680c0c281c05abc937a627045534
parent57c554f8a6e06894f601d977d18b3017d2a60f40
x86/ptwr: Misc cleanup to ptwr_emulated_update()

All but one user wants mfn as mfn_t, so switch its type.  offset is only ever
used when multipled by 8, so fold that into its initial calculation.  Fold all
the pointer arithmic on pl1e together, to avoid needless casts.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/ro-page-fault.c